//
//  ZJAroundVC.m
//  这家测试项目
//
//  Created by IOS_DEVELOPER on 2017/7/26.
//  Copyright © 2017年 陈志凌. All rights reserved.
//

#import "ZJAroundVC.h"

@interface ZJAroundVC ()

@property (weak, nonatomic) IBOutlet UIScrollView *scrollview;

@end

@implementation ZJAroundVC

- (void)viewDidLoad {
    [super viewDidLoad];
    ZJProjectDetailModel * model = GET_PROJECTINFO;
    CGFloat imgHeight = SCREEN_WIDTH  * [model.all_around_pic_ratio floatValue];
    UIImageView *imgV = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, imgHeight)];
    [imgV sd_setImageWithURL:[NSURL URLWithString:model.all_around_pic_url] placeholderImage:[UIImage imageNamed:kDefaultImageName]];
    
    self.scrollview.contentSize = CGSizeMake(0, imgHeight);
    [self.scrollview addSubview:imgV];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
